from redis import StrictRedis




class Config:
    DEBUG = None

    SECRET_KEY = 'OeXGLCwfn85d1D205qDyGGPhS5Z6EMw+FIjM5t/xX1iOFmuTrhegKg=='

    SESSION_TYPE = 'redis'
    SESSION_REDIS = StrictRedis(host='127.0.0.1', port=6379)
    SESSION_USE_SIGNER = True
    PERMANENT_SESSION_LIFETIME = 86400

    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/info_python37_exercise'
    SQLALCHEMY_TRACK_MODIFICATIONS = False

class DevelopmentConfig(Config):
    DEBUG = True
class ProductionConfig(Config):
    DEBUG = False

config_dict = {
    'dev':DevelopmentConfig,
    'pro':ProductionConfig
}